(self.webpackChunkashokLeyland=self.webpackChunkashokLeyland||[]).push([[223],{343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?(0,o.default)(e):e);return"string"==typeof e?(0,i.unsafeStringify)(t):t};var r,o=(r=n(6792))&&r.__esModule?r:{default:r},i=n(9910)},486:(e,t,n)=>{"use strict";n.d(t,{i:()=>le});const r={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},o=e=>1e3*e,i=e=>e/1e3,a=()=>{},s=e=>e;function l(e,t=!0){if(e&&"finished"!==e.playState)try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch(e){}}const u=e=>e(),c=(e,t,n=r.duration)=>new Proxy({animations:e.map(u).filter(Boolean),duration:n,options:t},f),f={get:(e,t)=>{const n=e.animations[0];switch(t){case"duration":return e.duration;case"currentTime":return i((null==n?void 0:n[t])||0);case"playbackRate":case"playState":return null==n?void 0:n[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(d)).catch(a)),e.finished;case"stop":return()=>{e.animations.forEach((e=>l(e)))};case"forEachNative":return t=>{e.animations.forEach((n=>t(n,e)))};default:return void 0===(null==n?void 0:n[t])?void 0:()=>e.animations.forEach((e=>e[t]()))}},set:(e,t,n)=>{switch(t){case"currentTime":n=o(n);case"playbackRate":for(let r=0;re.finished,p=e=>"object"==typeof e&&Boolean(e.createAnimation),h=e=>"number"==typeof e,m=e=>Array.isArray(e)&&!h(e[0]),y=(e,t,n)=>-n*e+n*t+e,v=(e,t,n)=>t-e===0?1:(n-e)/(t-e);function g(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=v(0,t,r);e.push(y(n,1,o))}}const b=(e,t,n)=>Math.min(Math.max(n,e),t);function w(e,t=function(e){const t=[0];return g(t,e-1),t}(e.length),n=s){const r=e.length,o=r-t.length;return o>0&&g(t,o),o=>{let i=0;for(;i{const r=t-e;return((n-e)%r+r)%r+e})(0,e.length,t)]:e}(n,i);return a=s(a),y(e[i],e[i+1],a)}}const x=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function T(e,t,n,r){if(e===t&&n===r)return s;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=x(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:x(o(e),t,r)}var S=n(9691);const E=e=>Array.isArray(e)&&h(e[0]),A={ease:T(.25,.1,.25,1),"ease-in":T(.42,0,1,1),"ease-in-out":T(.42,0,.58,1),"ease-out":T(0,0,.58,1)},D=/\((.*?)\)/;function k(e){if((0,S.T)(e))return e;if(E(e))return T(...e);const t=A[e];if(t)return t;if(e.startsWith("steps")){const t=D.exec(e);if(t){const e=t[1].split(",");return((e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,o="end"===t?Math.floor(r):Math.ceil(r);return b(0,1,o/e)})(parseFloat(e[0]),e[1].trim())}}return s}class C{constructor(e,t=[0,1],{easing:n,duration:o=r.duration,delay:i=r.delay,endDelay:a=r.endDelay,repeat:l=r.repeat,offset:u,direction:c="normal",autoplay:f=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=s,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((e,t)=>{this.resolve=e,this.reject=t})),n=n||r.easing,p(n)){const e=n.createAnimation(t);n=e.easing,t=e.keyframes||t,o=e.duration||o}this.repeat=l,this.easing=m(n)?s:k(n),this.updateDuration(o);const d=w(t,u,m(n)?n.map(k):s);this.tick=t=>{var n;let r=0;r=void 0!==this.pauseTime?this.pauseTime:(t-this.startTime)*this.rate,this.t=r,r/=1e3,r=Math.max(r-i,0),"finished"===this.playState&&void 0===this.pauseTime&&(r=this.totalDuration);const o=r/this.duration;let s=Math.floor(o),l=o%1;!l&&o>=1&&(l=1),1===l&&s--;const u=s%2;("reverse"===c||"alternate"===c&&u||"alternate-reverse"===c&&!u)&&(l=1-l);const f=r>=this.totalDuration?1:Math.min(l,1),p=d(this.easing(f));e(p);void 0===this.pauseTime&&("finished"===this.playState||r>=this.totalDuration+a)?(this.playState="finished",null===(n=this.resolve)||void 0===n||n.call(this,p)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},f&&this.play()}play(){const e=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(e=this.reject)||void 0===e||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){void 0!==this.pauseTime||0===this.rate?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}class j{setAnimation(e){this.animation=e,null==e||e.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const M=new WeakMap;function O(e){return M.has(e)||M.set(e,{transforms:[],values:new Map}),M.get(e)}const R=["","X","Y","Z"],_={x:"translateX",y:"translateY",z:"translateZ"},N={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},L={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:N,scale:{syntax:"",initialValue:1,toDefaultUnit:s},skew:N},P=new Map,I=e=>`--motion-${e}`,H=["x","y","z"];["translate","scale","rotate","skew"].forEach((e=>{R.forEach((t=>{H.push(e+t),P.set(I(e+t),L[e])}))}));const U=(e,t)=>H.indexOf(e)-H.indexOf(t),q=new Set(H),F=e=>q.has(e),W=e=>e.sort(U).reduce(B,"").trim(),B=(e,t)=>`${e} ${t}(var(${I(t)}))`,z=e=>e.startsWith("--"),$=new Set;const V=(e,t)=>document.createElement("div").animate(e,t),G={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{V({opacity:[1]})}catch(e){return!1}return!0},finished:()=>Boolean(V({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{V({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}},X={},Y={};for(const e in G)Y[e]=()=>(void 0===X[e]&&(X[e]=G[e]()),X[e]);const K=(e,t)=>(0,S.T)(e)?Y.linearEasing()?`linear(${((e,t)=>{let n="";const r=Math.round(t/.015);for(let t=0;t`cubic-bezier(${e}, ${t}, ${n}, ${r})`;function Q(e){return _[e]&&(e=_[e]),F(e)?I(e):e}const Z=(e,t)=>{t=Q(t);let n=z(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&0!==n){const e=P.get(t);e&&(n=e.initialValue)}return n},ee=(e,t,n)=>{t=Q(t),z(t)?e.style.setProperty(t,n):e.style[t]=n};function te(e,t,n,i={},u){const c=window.__MOTION_DEV_TOOLS_RECORD,f=!1!==i.record&&c;let d,{duration:y=r.duration,delay:v=r.delay,endDelay:g=r.endDelay,repeat:b=r.repeat,easing:w=r.easing,persist:x=!1,direction:T,offset:E,allowWebkitAcceleration:A=!1,autoplay:D=!0}=i;const k=O(e),C=F(t);let M=Y.waapi();C&&((e,t)=>{_[t]&&(t=_[t]);const{transforms:n}=O(e);var r,o;o=t,-1===(r=n).indexOf(o)&&r.push(o),e.style.transform=W(n)})(e,t);const R=Q(t),N=function(e,t){return e.has(t)||e.set(t,new j),e.get(t)}(k.values,R),L=P.get(R);return l(N.animation,!(p(w)&&N.generator)&&!1!==i.record),()=>{const r=()=>{var t,n;return null!==(n=null!==(t=Z(e,R))&&void 0!==t?t:null==L?void 0:L.initialValue)&&void 0!==n?n:0};let l=function(e,t){for(let n=0;nArray.isArray(e)?e:[e])(n),r);const k=function(e,t){var n;let r=(null==t?void 0:t.toDefaultUnit)||s;const o=e[e.length-1];if("string"==typeof o){const e=(null===(n=o.match(/(-?[\d.]+)([a-z%]*)/))||void 0===n?void 0:n[2])||"";e&&(r=t=>t+e)}return r}(l,L);if(p(w)){const e=w.createAnimation(l,"opacity"!==t,r,R,N);w=e.easing,l=e.keyframes||l,y=e.duration||y}if(z(R)&&(Y.cssRegisterProperty()?function(e){if(!$.has(e)){$.add(e);try{const{syntax:t,initialValue:n}=P.has(e)?P.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:n})}catch(e){}}}(R):M=!1),C&&!Y.linearEasing()&&((0,S.T)(w)||m(w)&&w.some(S.T))&&(M=!1),M){L&&(l=l.map((e=>h(e)?L.toDefaultUnit(e):e))),1!==l.length||Y.partialKeyframes()&&!f||l.unshift(r());const t={delay:o(v),duration:o(y),endDelay:o(g),easing:m(w)?void 0:K(w,y),direction:T,iterations:b+1,fill:"both"};d=e.animate({[R]:l,offset:E,easing:m(w)?w.map((e=>K(e,y))):void 0},t),d.finished||(d.finished=new Promise(((e,t)=>{d.onfinish=e,d.oncancel=t})));const n=l[l.length-1];d.finished.then((()=>{x||(ee(e,R,n),d.cancel())})).catch(a),A||(d.playbackRate=1.000001)}else if(u&&C)l=l.map((e=>"string"==typeof e?parseFloat(e):e)),1===l.length&&l.unshift(parseFloat(r())),d=new u((t=>{ee(e,R,k?k(t):t)}),l,Object.assign(Object.assign({},i),{duration:y,easing:w}));else{const t=l[l.length-1];ee(e,R,L&&h(t)?L.toDefaultUnit(t):t)}return f&&c(e,t,l,{duration:y,delay:v,easing:w,repeat:b,offset:E},"motion-one"),N.setAnimation(d),d&&!D&&d.pause(),d}}const ne=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);var re=n(1971);function oe(e,t,n){return(0,S.T)(e)?e(t,n):e}const ie=(ae=C,function(e,t,n={}){const r=(e=(0,re.K)(e)).length;Boolean(r),Boolean(t);const o=[];for(let i=0;i{const n=new C(e,[0,1],t);return n.finished.catch((()=>{})),n}],t,t.duration)}function le(e,t,n){return((0,S.T)(e)?se:ie)(e,t,n)}},744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(2858))&&r.__esModule?r:{default:r},i=n(9910);var a=null,s=null,l=0;t.default=function(e,t,n){e=e||{};var r=t&&n||0,u=t||new Uint8Array(16),c=e.random||(e.rng||o.default)(),f=void 0!==e.msecs?e.msecs:Date.now(),d=void 0!==e.seq?e.seq:null,p=s,h=a;return f>l&&void 0===e.msecs&&(l=f,null!==d&&(p=null,h=null)),null!==d&&(d>2147483647&&(d=2147483647),p=d>>>19&4095,h=524287&d),null!==p&&null!==h||(p=(p=127&c[6])<<8|c[7],h=(h=(h=63&c[8])<<8|c[9])<<5|c[10]>>>3),f+1e4>l&&null===d?++h>524287&&(h=0,++p>4095&&(p=0,l++)):l=f,s=p,a=h,u[r++]=l/1099511627776&255,u[r++]=l/4294967296&255,u[r++]=l/16777216&255,u[r++]=l/65536&255,u[r++]=l/256&255,u[r++]=255&l,u[r++]=p>>>4&15|112,u[r++]=255&p,u[r++]=h>>>13&63|128,u[r++]=h>>>5&255,u[r++]=h<<3&255|7&c[10],u[r++]=c[11],u[r++]=c[12],u[r++]=c[13],u[r++]=c[14],u[r++]=c[15],t||(0,i.unsafeStringify)(u)}},1735:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(1971),o=n(9691);const i={any:0,all:1};function a(e,t,{root:n,margin:a,amount:s="any"}={}){if("undefined"==typeof IntersectionObserver)return()=>{};const l=(0,r.K)(e),u=new WeakMap,c=new IntersectionObserver((e=>{e.forEach((e=>{const n=u.get(e.target);if(e.isIntersecting!==Boolean(n))if(e.isIntersecting){const n=t(e);(0,o.T)(n)?u.set(e.target,n):c.unobserve(e.target)}else n&&(n(e),u.delete(e.target))}))}),{root:n,rootMargin:a,threshold:"number"==typeof s?s:i[s]});return l.forEach((e=>c.observe(e))),()=>c.disconnect()}},1971:(e,t,n)=>{"use strict";function r(e,t){var n;return"string"==typeof e?t?(null!==(n=t[e])&&void 0!==n||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}n.d(t,{K:()=>r})},2311:(e,t)=>{"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r((s=r(r(t,e),r(o,a)))<<(l=i)|s>>>32-l,n);var s,l}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function l(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var o=0;o>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[o/8])<{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return y.default}});var r=v(n(4213)),o=v(n(4808)),i=v(n(6792)),a=v(n(9910)),s=v(n(3518)),l=v(n(343)),u=v(n(4948)),c=v(n(5073)),f=v(n(7186)),d=v(n(4671)),p=v(n(3507)),h=v(n(744)),m=v(n(7037)),y=v(n(7775));function v(e){return e&&e.__esModule?e:{default:e}}},2838:function(e){ /*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */ e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return i(e)||a(e)||s(e)||u()}function i(e){if(Array.isArray(e))return l(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o/gm),K=y(/\${[\w\W]*}/gm),J=y(/^data-[\-\w.\u00B7-\uFFFF]+$/),Q=y(/^aria-[\-\w]+$/),Z=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=y(/^(?:\w+script|data):/i),te=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=y(/^html$/i),re=y(/^[a-z][.\w]*(-[.\w]+)+$/i),oe=function(){return"undefined"==typeof window?null:window},ie=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function ae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe(),n=function(e){return ae(e)};if(n.version="2.5.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,u=t.Element,c=t.NodeFilter,f=t.NamedNodeMap,d=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,p=t.HTMLFormElement,h=t.DOMParser,y=t.trustedTypes,v=u.prototype,g=P(v,"cloneNode"),b=P(v,"nextSibling"),w=P(v,"childNodes"),R=P(v,"parentNode");if("function"==typeof s){var _=i.createElement("template");_.content&&_.content.ownerDocument&&(i=_.content.ownerDocument)}var se=ie(y,r),le=se?se.createHTML(""):"",ue=i,ce=ue.implementation,fe=ue.createNodeIterator,de=ue.createDocumentFragment,pe=ue.getElementsByTagName,he=r.importNode,me={};try{me=L(i).documentMode?i.documentMode:{}}catch(e){}var ye={};n.isSupported="function"==typeof R&&ce&&void 0!==ce.createHTMLDocument&&9!==me;var ve,ge,be=X,we=Y,xe=K,Te=J,Se=Q,Ee=ee,Ae=te,De=re,ke=Z,Ce=null,je=N({},[].concat(o(I),o(H),o(U),o(F),o(B))),Me=null,Oe=N({},[].concat(o(z),o($),o(V),o(G))),Re=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,Ne=null,Le=!0,Pe=!0,Ie=!1,He=!0,Ue=!1,qe=!0,Fe=!1,We=!1,Be=!1,ze=!1,$e=!1,Ve=!1,Ge=!0,Xe=!1,Ye="user-content-",Ke=!0,Je=!1,Qe={},Ze=null,et=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),tt=null,nt=N({},["audio","video","img","source","image","track"]),rt=null,ot=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",st="http://www.w3.org/1999/xhtml",lt=st,ut=!1,ct=null,ft=N({},[it,at,st],A),dt=["application/xhtml+xml","text/html"],pt="text/html",ht=null,mt=i.createElement("form"),yt=function(e){return e instanceof RegExp||e instanceof Function},vt=function(t){ht&&ht===t||(t&&"object"===e(t)||(t={}),t=L(t),ve=ve=-1===dt.indexOf(t.PARSER_MEDIA_TYPE)?pt:t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===ve?A:E,Ce="ALLOWED_TAGS"in t?N({},t.ALLOWED_TAGS,ge):je,Me="ALLOWED_ATTR"in t?N({},t.ALLOWED_ATTR,ge):Oe,ct="ALLOWED_NAMESPACES"in t?N({},t.ALLOWED_NAMESPACES,A):ft,rt="ADD_URI_SAFE_ATTR"in t?N(L(ot),t.ADD_URI_SAFE_ATTR,ge):ot,tt="ADD_DATA_URI_TAGS"in t?N(L(nt),t.ADD_DATA_URI_TAGS,ge):nt,Ze="FORBID_CONTENTS"in t?N({},t.FORBID_CONTENTS,ge):et,_e="FORBID_TAGS"in t?N({},t.FORBID_TAGS,ge):{},Ne="FORBID_ATTR"in t?N({},t.FORBID_ATTR,ge):{},Qe="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1!==t.ALLOW_ARIA_ATTR,Pe=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,He=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ue=t.SAFE_FOR_TEMPLATES||!1,qe=!1!==t.SAFE_FOR_XML,Fe=t.WHOLE_DOCUMENT||!1,ze=t.RETURN_DOM||!1,$e=t.RETURN_DOM_FRAGMENT||!1,Ve=t.RETURN_TRUSTED_TYPE||!1,Be=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,Xe=t.SANITIZE_NAMED_PROPS||!1,Ke=!1!==t.KEEP_CONTENT,Je=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,lt=t.NAMESPACE||st,Re=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&yt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&yt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ue&&(Pe=!1),$e&&(ze=!0),Qe&&(Ce=N({},o(B)),Me=[],!0===Qe.html&&(N(Ce,I),N(Me,z)),!0===Qe.svg&&(N(Ce,H),N(Me,$),N(Me,G)),!0===Qe.svgFilters&&(N(Ce,U),N(Me,$),N(Me,G)),!0===Qe.mathMl&&(N(Ce,F),N(Me,V),N(Me,G))),t.ADD_TAGS&&(Ce===je&&(Ce=L(Ce)),N(Ce,t.ADD_TAGS,ge)),t.ADD_ATTR&&(Me===Oe&&(Me=L(Me)),N(Me,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&N(rt,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(Ze===et&&(Ze=L(Ze)),N(Ze,t.FORBID_CONTENTS,ge)),Ke&&(Ce["#text"]=!0),Fe&&N(Ce,["html","head","body"]),Ce.table&&(N(Ce,["tbody"]),delete _e.tbody),m&&m(t),ht=t)},gt=N({},["mi","mo","mn","ms","mtext"]),bt=N({},["annotation-xml"]),wt=N({},["title","style","font","a","script"]),xt=N({},H);N(xt,U),N(xt,q);var Tt=N({},F);N(Tt,W);var St=function(e){var t=R(e);t&&t.tagName||(t={namespaceURI:lt,tagName:"template"});var n=E(e.tagName),r=E(t.tagName);return!!ct[e.namespaceURI]&&(e.namespaceURI===at?t.namespaceURI===st?"svg"===n:t.namespaceURI===it?"svg"===n&&("annotation-xml"===r||gt[r]):Boolean(xt[n]):e.namespaceURI===it?t.namespaceURI===st?"math"===n:t.namespaceURI===at?"math"===n&&bt[r]:Boolean(Tt[n]):e.namespaceURI===st?!(t.namespaceURI===at&&!bt[r])&&!(t.namespaceURI===it&&!gt[r])&&!Tt[n]&&(wt[n]||!xt[n]):!("application/xhtml+xml"!==ve||!ct[e.namespaceURI]))},Et=function(e){S(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=le}catch(t){e.remove()}}},At=function(e,t){try{S(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){S(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Me[e])if(ze||$e)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Dt=function(e){var t,n;if(Be)e=""+e;else{var r=D(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ve&<===st&&(e=''+e+"");var o=se?se.createHTML(e):e;if(lt===st)try{t=(new h).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(lt,"template",null);try{t.documentElement.innerHTML=ut?le:o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),lt===st?pe.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:a},kt=function(e){return fe.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null,!1)},Ct=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},jt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Mt=function(e,t,r){ye[e]&&x(ye[e],(function(e){e.call(n,t,r,ht)}))},Ot=function(e){var t;if(Mt("beforeSanitizeElements",e,null),Ct(e))return Et(e),!0;if(M(/[\u0080-\uFFFF]/,e.nodeName))return Et(e),!0;var r=ge(e.nodeName);if(Mt("uponSanitizeElement",e,{tagName:r,allowedTags:Ce}),e.hasChildNodes()&&!jt(e.firstElementChild)&&(!jt(e.content)||!jt(e.content.firstElementChild))&&M(/<[/\w]/g,e.innerHTML)&&M(/<[/\w]/g,e.textContent))return Et(e),!0;if("select"===r&&M(/